package com.quanyan.user.service;

import com.quanyan.common.Plugin.PageObj;
import com.quanyan.user.model.db.TbNewsUnreadDetails;
import com.quanyan.user.model.vo.request.ReqUnReadNews;
import com.quanyan.user.model.vo.request.UnReadParam;
import com.quanyan.user.model.vo.response.RespUnReadCount;

import java.util.List;

/**
 * Created by Administrator on 2017/2/22.
 * 消息未读数
 */
public interface NewsUnReadService {


    public static class NewsUnReadType{

        public static Integer comment = 1;

        public static Integer praise = 2;

        public static Integer at = 3;

    }

    /**
     *增加消息未读数
     */
    public void addNewsUnRead(UnReadParam unReadParam);


    /**
     * 查询未读消息
     * @param reqUnReadNews
     * @return
     */
    public PageObj<List<TbNewsUnreadDetails>> queryUnReadNews(ReqUnReadNews reqUnReadNews);


    /**
     * 清空
     * @param uid
     */
    public void clearNewsUnRead(Integer uid);


    /**
     * 未读消息数量
     * @param uid
     * @return
     */
    public RespUnReadCount queryUnReadNewsCount(Integer uid);




    }
